package com.wolf.service.impl;

import com.wolf.pojo.Wl_user;
import com.wolf.service.Wl_userService;
import com.wolf.repository.Wl_userMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class Wl_userServiceImpl implements Wl_userService {

    private Wl_userMapper wl_userMapper;
    @Autowired
    public Wl_userServiceImpl(Wl_userMapper wl_userMapper) {
        this.wl_userMapper = wl_userMapper;
    }

    @Override
    public int deleteByPrimaryKey(String id) {
        return wl_userMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Wl_user record) {
        return wl_userMapper.insert(record);
    }

    @Override
    public int insertSelective(Wl_user record) {
        return wl_userMapper.insertSelective(record);
    }

    @Override
    public Wl_user selectByPrimaryKey(String id) {
        return wl_userMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Wl_user record) {
        return wl_userMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Wl_user record) {
        return wl_userMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<Wl_user> getAll() {
        return wl_userMapper.getAll();
    }
}
